import random,time

aa = random.randint(10,100)
aa_list = []
for i in range(1,1000):
    aa = random.randint(10, 1000)
    aa_list.append(aa)

print(aa_list)


for i in range(len(aa_list)-1):
    for j in range(len(aa_list)-i-1):
        if aa_list[j] < aa_list[j+1]:
            aa_list[j],aa_list[j+1] = aa_list[j+1],aa_list[j]
start = time.perf_counter()
print(aa_list)
print("耗时>>>",start)